home *** CD-ROM | disk | FTP | other *** search
-
-
-
- ABS C Library Procedures ABS
-
-
-
- NNAAMMEE
- abs, labs - integer absolute value
-
- SSYYNNOOPPSSIISS
- ##iinncclluuddee <<ssttddlliibb..hh>>
-
- iinntt aabbss((ii))
- iinntt ii;;
-
- lloonngg iinntt llaabbss((ii))
- lloonngg iinntt ii;;
-
- DDEESSCCRRIIPPTTIIOONN
- _A_b_s returns the absolute value of its integer operand. _L_a_b_s
- is similar to _a_b_s except that its argument and its resul are
- both of type lloonngg iinntt.
-
- SSEEEE AALLSSOO
- floor(3M) for _f_a_b_s
-
- BBUUGGSS
- Applying the _a_b_s function to the most negative integer gen-
- erates a result which is the most negative integer. That
- is,
-
- abs(0x80000000)
-
- returns 0x80000000 as a result.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Sprite v1.0 May 15, 1985 1
-
-
-
-